﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Data;
using System.Data.SqlClient;

namespace EntityDA
{
    public class ConnectionDB
    {
        string str = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\LeNguyenHaVy09CDTH.mdf;Integrated Security=True;User Instance=True";
        SqlConnection cn;
        public SqlCommand cmd { get; set; }
        public ConnectionDB()
        {
            cn = new SqlConnection(str);
            cn.Open();
            cmd = new SqlCommand();
            cmd.CommandType = CommandType.Text;
            cmd.Connection = cn;
        }
    }
}